package chapter03;

public class Example01 {
    String name;
    void read(){
        System.out.println("大家好，我是"+name+",我在学习");
    }
}
class demo01 {
    public static void main(String[] args) {
        Student stu1 = new Student();
        Student stu2 = new Student();
        stu.name = " 小明 ";
        stu1.read();
        stu2.name = "小华";
        stu2.read();
    }
}
